﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.CollectionFontend
{
    public class OrderCollection
    {
        
            [Required(ErrorMessage = "*")]
            [DisplayName("Full Name")]
            [StringLength(250)]
            public string FullName { get; set; }

            [Required(ErrorMessage = "*")]
            [StringLength(150)]
            public string Address { get; set; }

            [Required(ErrorMessage = "*")]
            [StringLength(50)]
            public string City { get; set; }

            [DisplayName("Postal Code")]
            [StringLength(10)]
            public string PostalCode { get; set; }

            [Required(ErrorMessage = "*")]
            [StringLength(50)]
            public string Country { get; set; }

            [Required(ErrorMessage = "*")]
            [StringLength(50)]
            public string Phone { get; set; }

            [Required(ErrorMessage = "*")]
            [DisplayName("Email Address")]
            [RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}", ErrorMessage = "Email Invalid.")]
            [DataType(DataType.EmailAddress)]
            public string Email { get; set; }

            [ScaffoldColumn(false)]
            public int OrderID { get; set; }

            //[ScaffoldColumn(false)]
            //public object OrderDate { get; set; }

            //[ScaffoldColumn(false)]
            //public object Username { get; set; }

            [ScaffoldColumn(false)]
            public double Total { get; set; }

    }
}